﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Tauren.Business.DLL.TenantInformation
{
    public interface ITenantInformationBusiness
    {
        /// <summary>
        /// 新增租户
        /// </summary>
        /// <param name="tenant"></param>
        /// <returns></returns>
        long Add(Entity.Model.TenantInformation tenant);

        /// <summary>
        /// 编辑租户
        /// </summary>
        /// <param name="tenant"></param>
        /// <returns></returns>
        bool Editor(Entity.Model.TenantInformation tenant);

        /// <summary>
        /// 删除租户
        /// </summary>
        /// <param name="auotId"></param>
        /// <returns></returns>
        bool Delete(int auotId);

        /// <summary>
        /// 删除租户--根据租户ID
        /// </summary>
        /// <param name="auotId"></param>
        /// <returns></returns>
        bool DeleteByCode(string code);

        /// <summary>
        /// 根据Id获取数据
        /// </summary>
        /// <param name="autoId"></param>
        /// <returns></returns>
        Entity.Model.TenantInformation Get(int autoId);

        /// <summary>
        /// 根据code获取数据
        /// </summary>
        /// <param name="autoId"></param>
        /// <returns></returns>
        Entity.Model.TenantInformation GetByCode(string code);

        /// <summary>
        /// 获取所有的租户信息
        /// </summary>
        /// <param name="autoId"></param>
        /// <returns></returns>
        List<Entity.Model.TenantInformation> All();

    }
}
